/**
 * @file main.cpp
 * @Synopsis zlink共享内存数据 --- 数据转发标 --->
 * @author Mingyu Wu
 * @version 1.0.0
 * @date 2024-06-24
 */

#include "DataGen.h"
#include "Util.h"
#include "dataShare/include/TransportLayer.h"

#include <cstdio>

int main(int argc, char *argv[]) {
    Util::Init();

    DataGen dg;
    dg.Init();

    TransportLayer tl(DataGen::dataMap);
    tl.Start();

    for (;;) {
        dg.Update();
        sleep(1);
    }
    // for (auto &item : DataGen::dataMap) {
    //     zlog_i("%s: %s", item.first.c_str(), item.second.c_str());
    // }

    return 0;
}
